﻿<UserControl x:Class="QLab.UserControls.VariableTableView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:qlab="clr-namespace:QLab"
             mc:Ignorable="d" 
             HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="White"
             d:DesignHeight="376" d:DesignWidth="396">
    <Grid>
        <DockPanel>
            <DataGrid x:Name="DataGrid" 
                      ItemsSource="{Binding Path=Variables}" 
                      AutoGenerateColumns="False" 
                      Background="White" 
                      HeadersVisibility="Column" 
                      BorderThickness="0"
                      GridLinesVisibility="None"
                      IsReadOnly="True">
                <DataGrid.Columns>
                    <DataGridTextColumn Binding="{Binding Path=Name}" Header="Name" FontSize="{Binding Source={x:Static Member=qlab:Properties.Settings.Default}, Path=ListFontSize, Mode=OneWay}" />
                    <DataGridTextColumn Binding="{Binding Path=Value}" Header="Value" />
                </DataGrid.Columns>
            </DataGrid>
        </DockPanel>
    </Grid>
</UserControl>
